﻿<Window x:Class="LayeredArchitectureSample.ClientBrowser.NewLocationView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="New location" Height="300" Width="300" WindowStartupLocation="CenterScreen" SizeToContent="WidthAndHeight" ResizeMode="NoResize" FocusManager.FocusedElement="{Binding ElementName=LocationName}">
    <StackPanel Orientation="Vertical">
        <StackPanel Orientation="Horizontal">
            <Label Content="Name: "></Label>
            <TextBox TabIndex="0" x:Name="LocationName" HorizontalAlignment="Stretch" Text="{Binding Path=Name, Mode=TwoWay}" Width="250" MaxWidth="250"></TextBox>
        </StackPanel>
        <Button TabIndex="1" Content="Add" Margin="0,10,0,0" x:Name="AddLocationButton" Click="AddLocationButtonClick"></Button>
        <Button TabIndex="2" Content="Cancel" Click="CancelButtonClick"></Button>
    </StackPanel>
</Window>